<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"></script>
    <style>
        div{
            width: 300px;
            height: 300px;
            border-top: 1px solid black;
            border-left:1px solid black ;
            margin: 0 auto;
        }
        button{
            margin-left: 20px;
        }

    </style>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for="(item,index) in list" :key="item">{{ item }}</li>
        </ul>
    <button @click="change">走一走</button>
    </div>

    <script>
      const app = new Vue({
        el: '#app',
        data:{
            list:['东方持国天王','南方增长天王','西方广目天王','北方多闻天王']
        },
        methods: {
             change(){
                this.list.push(this.list[0])
                this.list.shift()
             }
        }

      })

    </script>
</body>
</html>